import java.util.Scanner;

/**
 * Created by Administrator on 2016/3/3.
 */
public class bubble
{
    public static void main(String[] args)
    {
       Scanner in=new Scanner(System.in);
        int num;
        int[] a;
        num=in.nextInt();
        int i,j;
        a=new int[num];
        for(i=0;i<num;i++)
            a[i]=in.nextInt();

        int N=num-1;
        int flag;
        for(i=0;i<=N-1;i++)
        {
            flag=0;
            for(j=0;j<=N-i-1;j++)
            {
              if(a[j]>a[j+1])
              {
                  flag=1;
                  a[j]=a[j]^a[j+1];
                  a[j+1]=a[j]^a[j+1];
                  a[j]=a[j]^a[j+1];
              }
            }
            if(flag==0)
                break;
        }
        for(i=0;i<=N;i++)
            if(i!=N)
            System.out.print(a[i]+" ");
            else
                System.out.println(a[i]);
    }
}
